#ifndef PM_DLG_EDIT_COST_H_INCLUDED
#define PM_DLG_EDIT_COST_H_INCLUDED

#include "dlgeditcostgui.h"
#include "pm/cost.h"

/**
 * \class DlgEditCost
 */
class DlgEditCost : public DlgEditCostGui
{
protected:
	pm::Cost m_cost;
	
public:
	DlgEditCost(wxWindow* parent, const wxString& title);
	
protected:
	virtual bool Submit() = 0;
	
	virtual void OnSubmit(wxCommandEvent& event);
};

/**
 * \class DlgNewCost
 */
class DlgNewCost : public DlgEditCost
{
public:
	DlgNewCost(wxWindow* parent);
	
protected:
	virtual bool Submit();
};

/**
 * \class DlgUpdateCost
 */
class DlgUpdateCost : public DlgEditCost
{
public:
	DlgUpdateCost(wxWindow* parent, const pm::Cost& cost);
	
protected:
	virtual bool Submit();
};

#endif // PM_DLG_EDIT_COST_H_INCLUDED
